summaryrefslogtreecommitdiff
path: root/ui/routes/(app)/ch/[channel]/+page.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'ui/routes/(app)/ch/[channel]/+page.svelte')
-rw-r--r--ui/routes/(app)/ch/[channel]/+page.svelte4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/routes/(app)/ch/[channel]/+page.svelte b/ui/routes/(app)/ch/[channel]/+page.svelte
index dbdb507..9335198 100644
--- a/ui/routes/(app)/ch/[channel]/+page.svelte
+++ b/ui/routes/(app)/ch/[channel]/+page.svelte
@@ -58,7 +58,7 @@
}
let lastReadCallback = null;
- function handleScroll() {
+ function onscroll() {
clearTimeout(lastReadCallback); // Fine if lastReadCallback is null still.
lastReadCallback = setTimeout(setLastRead, 2 * 1000);
}
@@ -66,7 +66,7 @@
<svelte:window onkeydown={handleKeydown} />
-<div class="active-channel" on:scroll={handleScroll} bind:this={activeChannel}>
+<div class="active-channel" {onscroll} bind:this={activeChannel}>
<ActiveChannel {messageRuns} />
</div>
<div class="create-message">